//TIP 要<b>运行</b>代码，请按 <shortcut actionId="Run"/> 或
// 点击间距中的 <icon src="AllIcons.Actions.Execute"/> 图标。
public class Main {
    public static void main(String[] args) {

                Rectangle rect1 = new Rectangle();
                System.out.println("面积：" + rect1.getSquare() + "，周长：" + rect1.getPerimeter());


                Rectangle rect2 = new Rectangle(1);
                System.out.println("面积：" + rect2.getSquare() + "，周长：" + rect2.getPerimeter());


                Rectangle rect3 = new Rectangle(2, 3);
                System.out.println("面积：" + rect3.getSquare() + "，周长：" + rect3.getPerimeter());
            }
        }
